c how to initial struct array member from another struct variable